import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== component
class Index extends React.Component{
	state = {
		data:[],
		pag: {},
		selectedKeys:[],
		//修改账期
		formData:[
			{ label: '标本条码',		name: 'old_spec_code', 	half:true, required:true, disabled:true },
			{ label: '医院名称',		name: 'hosp_name', 		half:true, required:true, disabled:true },
			{ label: '项目',			name: 'item_name', 		half:true, required:true, disabled:true },
			{ label: '选择类型',		name: 'pay_type', 		half:true, required:true, type: 'select', data:[{name:'增加',value:'1'},{name:'减少',value:'2'}] },
			{ label: '价格',			name: 'price', 			half:true, required:true },
			{ label: '原因',			name: 'reason', 		full:true, type: 'textarea' },
			{ label: '上传图片',		name: 'pic_path', 		half:true, type: 'upload' },
		]
	}
	
	model = {}
	
	open = rows => {
		const { uuid } = rows
		this.modal.open({ formRef:this.formRef })
		this.submit = { uuid }
		this.formRef.setValue(rows)
	}

	render(){
		return FormModal.call(this,{ title:'新增账单', api: 'bill/add' })
	}
}

export default Index